﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microhard.Plat.CompanyChargingMng.Models;

namespace Microhard.Plat.CompanyChargingMng.Impls
{
    internal class EmployeeCompaer : IComparer<EmployeeModel>
    {
        public int Compare(EmployeeModel x, EmployeeModel y)
        {
            if (x == null)
                throw new Exception("缺少x参数");
            if (y == null)
                throw new Exception("缺少y参数");
            if (x.EmployeeID == y.EmployeeID)
                return 0;
            return 1;
        }
    }
}
